package org.umss.fixture.model;

public class Game {
    String id;
	Team local;
	Team visitor;
	int localScore;
	int visitorScore;
	boolean terminated;

	public Game() {
		super();
	}

	public Game(Team local, Team visitor) {
		super();
		this.local = local;
		this.visitor = visitor;
	}
	
	public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Team getLocal() {
		return local;
	}

	public void setLocal(Team local) {
		this.local = local;
	}

	public Team getVisitor() {
		return visitor;
	}

	public void setVisitor(Team visitor) {
		this.visitor = visitor;
	}
	
	public boolean isTerminated() {
        return terminated;
    }

    public void setTerminated(boolean terminated) {
        this.terminated = terminated;
    }

    public int getLocalScore() {
        return localScore;
    }

    public void setLocalScore(int localScore) {
        this.localScore = localScore;
    }

    public int getVisitorScore() {
        return visitorScore;
    }

    public void setVisitorScore(int visitorScore) {
        this.visitorScore = visitorScore;
    }

    @Override
	public String toString() {
        if(local == null) {
            return "Por definir vs. Por definir";
        }
		return local.getName() + " vs. " + visitor.getName();
	}
}
